home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / daemons / init / failinit.20 / failinit / failinit1.20 / README < prev   
Encoding:
Text File  |  1995-11-23  |  2.1 KB  |  48 lines

  1. Failinit - a really simple failsave init extension
  2.  
  3. V1.20: Tries to  start  /sbin/sash, /bin/sash and /etc/sash, the Linux
  4. stand alone shell from dbell@pdact.pd.necisa.oz.au.  I'm happy that  I
  5. found this great shell on a file server.  Note that sash is much elder
  6. than failinit but I only noted it's presence some days ago.
  7.  
  8. THIS PACKAGE MAY BE CONSIDERED BETA, BECAUSE IT IS TESTED ON MY SYSTEM
  9. ONLY. However I use it for a year or so without trouble.
  10.  
  11. While configuring   Linux I several times  screwed  up /etc/inittab or
  12. /etc/rc.d/rc, such that no  login showed up any more.  The only way to
  13. get into the system was to reboot from  the install floppy disk, which
  14. is not very desireable.
  15.  
  16. For this purpose I designed failinit, which can  be placed in /etc and
  17. can be  softlinked to  /etc/init,  such that  Linux boots this  before
  18. /bin/init  or /sbin/init.  The  only thing  /etc/failinit  does, is to
  19. spawn a shell if the  commandline to init  starts with  'fail' and  to
  20. wait for this  shell to finish  if the first  argument is not  exactly
  21. 'fail'.
  22.  
  23. I "enjoyed" having  it while I was  tracing down  a nasty problem with
  24. ext2fs after a severe system crash (buffer head pointer is NULL), that
  25. crashed my system again just after checking the filesystems ...
  26.  
  27. If you don't know how to enter "fail" on the command line:
  28.  
  29. At boot time LILO  enables you to  enter something BEHIND the image to
  30. load, which will be passed to init. (I use LILO only. But I think that
  31. the other booters have similiar possiblilities I think.)
  32.  
  33. To boot in single user mode looks like: boot: linux S
  34. And spawn a failshell, too, looks like: boot: linux fail S
  35. To wait until it's finished looks like: boot: linux fails S
  36. The first line is present without failinit, too.
  37.  
  38. To install failinit, just unpack the archive and type
  39. make install
  40. Failinit then checks if it is installed properly.  If not you will get
  41. a warning.
  42.  
  43. I am not liable for  any damage.  Use at own  risk. No warranty.  This
  44. archive may be distributed according to the GNU GPL V2 or higher.  The
  45. file COPYING is no part of this archive to make it much smaller.
  46.  
  47. tino@augsburg.net
  48.